package com.ruoyi.demo.mapper;

import com.ruoyi.demo.domain.*;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
@Mapper
public interface MonitorPointDemoMapper {

    List<CoalMineDemo> selectCoalMinesWithMonitors(String monitorName);

    int mergeMonitorListToMonitorTable(@Param("monitorPointList") List<MonitorPointDemo> monitorPointList);

    void deleteMonitorNotInList(List<MonitorPointDemo> list);

    HashMap<String, Integer> selectTotalMonitorCountAndOnlineMonitorCount();


    MonitorOfflineAlarmSettingsDemo selectMonitorOfflineAlarmSettings();

    List<MonitorPointDemo> selectMonitorsThatNeedToSendOfflineAlarm(Integer setMinutes);

    int insertMonitorOfflineAlarm(List<MonitorPointDemo> monitorListThatOfflineTimeout);

    int updateAlarmStatusAsSent(List<MonitorPointDemo> monitorListThatOfflineTimeout);
}
